﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace TDM.WebSvr.Controllers
{
    /// <summary>
    /// Values 控制器示例
    /// </summary>
    public class ValuesController : NXDO.WebAPI.Controllers.ApiDbController
    {
        public ValuesController()
        {
        }

        /// <summary>
        /// 匿名访问 
        /// </summary>
        /// <remarks>
        /// GET: api/Values/get
        /// </remarks>
        /// <returns></returns>
        [HttpGet, AllowAnonymous]
        public Object Get()
        {
            return "{}";
        }

        ///// <summary>
        ///// 授权访问 
        ///// </summary>
        ///// <remarks>
        ///// GET: api/Values/getX
        ///// </remarks>
        ///// <returns></returns>
        //[HttpGet, Authorize]
        //public Object GetX()
        //{
        //}
    }

}
